{extend name='common@layout/store' /}
{block name='content'}
<div class="banner">
    <div class="user-box">
        {gt name='Think.config.member_id' value='0'}
        <div class="user-joinin">
            <h3>亲爱的：{$Think.config.member_info.name}</h3>
            <dl>
                <dt>欢迎来到 爱员工官网</dt>
                <dd> 
                    若您还没有填写入驻申请资料<br>
                    请点击“<a href="{:url('index/store/step0')}">我要入住</a>”进行入驻资料填写
                </dd>
                <dd>
                    若您的店铺还未开通<br>
                    请通过“<a href="{$Think.request.base_url}{:url('index/store/step4')}">查看入驻进度</a>”了解店铺开通的最新状况 
                </dd>
            </dl>
            <div class="bottom">
                <a href="{$Think.request.base_url}{:url('index/store/step0')}">我要入驻</a>
                <a href="{$Think.request.base_url}{:url('index/store/step4')}">查看入驻进度</a>
            </div>
        </div>
        {else /}
        <div class="user-login">
            <h3>商务登录<em>（使用已注册的会员账号）</em></h3>
            <form id="login_form" action="{:url('index/index/login')}" method="post">
                {:token()}
                <dl>
                    <dt>用户名：</dt>
                    <dd>
                        <input type="text" class="text" autocomplete="off" name="account" id="user_name">
                        <label></label>
                    </dd>
                </dl>
                <dl>
                    <dt>密&nbsp;&nbsp;&nbsp;码：</dt>
                    <dd>
                        <input type="password" class="text" name="password" autocomplete="off" id="password">
                        <label></label>
                    </dd>
                </dl>
                <dl>
                    <dt>验证码：</dt>
                    <dd>
                        <input type="text" name="captcha" class="text w50 fl" id="captcha" maxlength="4" size="10">
                        <img alt="验证码" src="{:captcha_src()}?rand={:time()}" class="fl ml5" width="95" height="28" id="codeimage" border="0"　style='cursor:pointer;' title='点击更换' onclick="this.src = '{:captcha_src()}?nchash=aa7e75e1&t=' + Math.random();">
                        <label></label>
                    </dd>
                </dl>
                <dl>
                    <dt></dt>
                    <dd>
                        <input type="hidden" value="{:url('index/store/join')}" name="ref_url">
                        <input name="提交" type="submit" class="button" value="登&nbsp;&nbsp;录">
                        <a href="http://web.aiyuangong.com/login.html?aygflag" target="_blank">忘记密码？</a></dd>
                </dl>
            </form>
            <div class="register">还没有成为我们的合作伙伴？ <a href="{$Think.config.url_reg|default='https://web.aiyuangong.com/creat.html'}" target="_blank">快速注册</a></div>
        </div>
        {/gt}
    </div>
    <ul id="fullScreenSlides" class="full-screen-slides">
        <li style="background-color: #F1A595; background-image: url(/old/data/upload/shop/common/store_joinin_1.jpg)"></li>
        <li style="background-color: #F1A595; background-image: url(/old/data/upload/shop/common/store_joinin_2.jpg)"></li>
        <li style="background-color: #F1A595; background-image: url(/old/data/upload/shop/common/store_joinin_3.jpg)"></li>
    </ul>
</div>
<div class="indextip">
    <div class="container"> 
        <span class="title"><i></i>
            <h3>贴心提示</h3>
        </span> 
        <span class="content">爱员工官网提供各类专业管家服务，协助您开通店铺、运营店铺、组织营销活动及分析运营数据，悉心为您解答各类疑问，引导您按相关规则展开运营；我们将竭尽全力，为您的店铺保驾护航。</span>
    </div>
</div>
<div class="main mt30">
    <h2 class="index-title">入驻流程</h2>
    <div class="joinin-index-step">
        <span class="step"><i class="a"></i>签署入驻协议</span><span class="arrow"></span>
        <span class="step"><i class="b"></i>商家信息提交</span><span class="arrow"></span>
        <span class="step"><i class="c"></i>平台审核资质</span><span class="arrow"></span>
        <span class="step"><i class="d"></i>商家缴纳费用</span><span class="arrow"></span>
        <span class="step"><i class="e"></i>店铺开通</span>
    </div>

</div>
<script type="text/javascript" src="/old/shop/resource/js/home_index.js?v1.2" charset="utf-8"></script>
<div id="faq">
    <div class="faq-wrapper">
    </div>
</div>
{/block}
{block name='script'}
<script>
                            $(document).ready(function () {
                                $("#login_form ").validate({
                                    errorPlacement: function (error, element) {
                                        var error_td = element.parent('dd');
                                        error_td.find('label').hide();
                                        error_td.append(error);
                                    },
                                    rules: {
                                        user_name: "required",
                                        password: "required"
                                        , captcha: {
                                            required: true,
                                            minlength: 4
                                        }
                                    },
                                    messages: {
                                        user_name: "用户名不能为空",
                                        password: "密码不能为空"
                                        , captcha: {
                                            required: '验证码不能为空',
                                            minlength: '验证码不能为空',
                                            remote: '验证码错误'
                                        }
                                    }
                                });
                            });

                            function show_list(t_id) {
                                var obj = $(".sidebar dl[show_id='" + t_id + "']");
                                var show_class = obj.find("dt i").attr('class');
                                if (show_class == 'hide') {
                                    obj.find("dd").show();
                                    obj.find("dt i").attr('class', 'show');
                                } else {
                                    obj.find("dd").hide();
                                    obj.find("dt i").attr('class', 'hide');
                                }
                            }

                            function show_list(t_id) {
                                var obj = $(".sidebar dl[show_id='" + t_id + "']");
                                var show_class = obj.find("dt i").attr('class');
                                if (show_class == 'hide') {
                                    obj.find("dd").show();
                                    obj.find("dt i").attr('class', 'show');
                                } else {
                                    obj.find("dd").hide();
                                    obj.find("dt i").attr('class', 'hide');
                                }
                            }
</script>

{/block}